package com.example.shixun.service.impl;

import com.example.shixun.dao.PaperQuestionDao;
import com.example.shixun.pojo.PaperQuestion;
import com.example.shixun.service.PaperQuestionService;

import javax.annotation.Resource;

/**
 * @Author XDW
 * @Version 1.0
 * @date 2023/6/24 17:45
 */
public class PaperQuestionServiceImpl implements PaperQuestionService {
    @Resource
    private PaperQuestionDao paperQuestionDao;
    @Override
    public Integer savePaperQuestion(PaperQuestion paperQuestion) {
        return paperQuestionDao.savePaperQuestion(paperQuestion);
    }

    @Override
    public Integer deletePaperQuestionById(int id) {
        return paperQuestionDao.deletePaperQuestionById(id);
    }

    @Override
    public PaperQuestion selectPaperQuestionById(int id) {
        return paperQuestionDao.selectPaperQuestionById(id);
    }

    @Override
    public Integer updatePaperQuestion(PaperQuestion paperQuestion) {
        return paperQuestionDao.updatePaperQuestion(paperQuestion);
    }
}
